package SmartHome.entity;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class DeviceTypeInfo {

    private final SimpleIntegerProperty DevicesTypeId;
    private final SimpleStringProperty DevicesTypeName;
    public int dtState;

    public DeviceTypeInfo(Integer DevicesTypeId, String DevicesTypeName,int dtState) {
        this.DevicesTypeId = new SimpleIntegerProperty(DevicesTypeId);
        this.DevicesTypeName = new SimpleStringProperty(DevicesTypeName);
        this.dtState = dtState;
    }


    public int getDevicesTypeId() {
        return DevicesTypeId.get();
    }
    public SimpleIntegerProperty DeviceTypeIdProperty(){return DevicesTypeId;}
    public void setDevicesTypeId(int DevicesTypeId) {
        this.DevicesTypeId.set(DevicesTypeId);
    }

    public String getDevicesTypeName() {
        return DevicesTypeName.get();
    }
    public SimpleStringProperty DeviceTypeNameProperty(){return DevicesTypeName;}
    public void setDevicesTypeName(String DevicesTypeName) { this.DevicesTypeName.set(DevicesTypeName);}

    @Override
    public String toString() {
        return "DeviceTypeInfo{" +
                "DevicesTypeId=" + DevicesTypeId +
                ", DevicesTypeName='" + DevicesTypeName + '\'' +
                ", dtState='" + dtState + '\'' +
                '}';
    }
}
